<?php /* Smarty version 2.6.18, created on 2010-03-09 17:06:13
         compiled from skill.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'skill.tpl', 30, false),)), $this); ?>
<div id="main_content">
    	<h1>Skill List</h1>
        
		<?php if ($this->_tpl_vars['userType'] == 'ADMIN'): ?>
			<div class="blue">
        	    <form action="" id="filterForm" >
        	        <table style="width: 100%">
        	            <tr align="right">
        					<td style="width: 100px">
								<input type="button" value="New Skill" onclick="openWindow('/account/editSkill/skillId/0','Skill',500,200,'scrollbars=yes');" />
        					</td>
        	            </tr>
        	        </table>
        	    </form>
        	</div>
        <?php endif; ?>       
            <div id="result">
				<div>
					<table border="0" width="100%">
					<tr><td colspan="3"><hr></td></tr>
					<tr>
						<?php if ($this->_tpl_vars['skills'][0]['skill'] <> '' && $this->_tpl_vars['userType'] == 'ADMIN'): ?>
								<td align="center" style="padding-left: 5pt; padding-right: 5pt" width="80px">Edit</td>
						<?php endif; ?>
						<td width="600px">Skill</td>
						<td align="right">Created</td>
					</tr>
					<tr><td colspan="3"><hr></td></tr>
					<?php $_from = $this->_tpl_vars['skills']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['skill']):
?>
					<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
						<?php if ($this->_tpl_vars['skill']['skill'] <> '' && $this->_tpl_vars['userType'] == 'ADMIN'): ?>
							<td align="center">
							<a href="javascript:void(0);" onclick="openWindow('/account/editSkill/skillId/<?php echo $this->_tpl_vars['skill']['skill_id']; ?>
','Skill',500,200,'scrollbars=yes');">Edit</a>
						</td>
						<?php endif; ?>
						<td><?php echo $this->_tpl_vars['skill']['skill']; ?>
</td>
						<td align="right"><?php echo $this->_tpl_vars['skill']['date_created']; ?>
</td>
					</tr>
					<?php endforeach; endif; unset($_from); ?>
					</table>
				</div>
            </div><!-- results -->
            
</div>
<script language="javascript">
	<?php echo '
	'; ?>

</script>